different aggregation on different columns

welcome to shbcf.ru